<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap Admin</title>
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" type="text/css" href="__APP__/Resource/lib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="__APP__/Resource/style/theme.css">
<link rel="stylesheet" href="__APP__/Resource/lib/font-awesome/css/font-awesome.css">
<script src="__APP__/Resource/lib/jquery-1.8.1.min.js" type="text/javascript"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
<!--<![endif]-->
<include file="./Tpl/Public/header.html" />
<include file="./Tpl/Public/sidebar-nav.html" />
<div class="content">
      <div class="header">
    <h1 class="page-title">商品管理</h1>
  </div>
      <ul class="breadcrumb">
    <li><a href="index.html">首页</a> <span class="divider">/</span></li>
    <li class="active">商品管理</li>
  </ul>
      <div class="container-fluid">
    <div class="row-fluid">
          <div class="btn-toolbar"> <a href="__APP__/Goods/add" role="button" class="btn btn-primary">增加</a> <a href="#" role="button" class="btn">导入</a> <a href="#" role="button" class="btn">导出</a>
        <div class="btn-group"> </div>
      </div>
          <div class="well">
          
        <table class="table">
              <thead>
            <tr>
                  <th>序号</th>
                  <th>商品图片</th>
                  <th style="width: 200px;">标题</th>
                  <th>商品编号</th>
                  <th>重量</th>
                  <th>库存</th>
                  <th>供应商</th>
                  <th>采购价</th>
                  <th>发布平台</th>
                  <th>日期</th>
                  <th style="width: 30px;">操作</th>
                </tr>
          </thead>
              <tbody>
             <?php foreach ($list as $key=>$value ):?>
                <tr>
                  <td><?php echo $value['id']; ?></td>
                  <td><?php echo "<img src='__APP__/Uploads/Goods/$value[picture]' width='50' height='50' />"; ?></td>
                  <td><?php echo $value['title']; ?></td>
                  <td><?php echo $value['sku']; ?></td>
                  <td><?php echo $value['weight']; ?></td>
                  <td><?php echo $value['stock']; ?></td>
                  <td>4</td>
                  <td><?php echo $value['purchasing_price']; ?></td>
                  <td><?php echo $value['platform']; ?></td>
                  <td><?php echo $value['date']; ?></td>
                  <td><a href="__APP__/Goods/edit/id/<?php echo $value['id']; ?>"><i class="icon-pencil"></i></a> <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a></td>
                </tr>
            <?php endforeach;?>
            
          </tbody>
            </table>
      </div>
      <div class="pagination"><ul>{$page}</ul></div>
          <div class="pagination">
        <ul>
              <li><a href="#">Prev</a></li>
              <li><a href="#">1</a></li>
              <li><a href="#">2</a></li>
              <li><a href="#">3</a></li>
              <li><a href="#">4</a></li>
              <li><a href="#">Next</a></li>
            </ul>
      </div>
          <div class="modal small hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
              <h3 id="myModalLabel">删除确认</h3>
            </div>
        <div class="modal-body">
              <p class="error-text"><i class="icon-warning-sign modal-icon"></i>你确定要删除这个商品吗？</p>
            </div>
        <div class="modal-footer">
              <button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
              <button class="btn btn-danger" data-dismiss="modal">删除</button>
            </div>
      </div>
      <footer>
        <hr>
        
        <!-- Purchase a site license to remove this link from the footer: http://www.portnine.com/bootstrap-themes -->
        <p class="pull-right">A <a href="http://www.portnine.com/bootstrap-themes" target="_blank">Free Bootstrap Theme</a> by <a href="http://www.portnine.com" target="_blank">Portnine</a></p>
        <p>&copy; 2012 <a href="http://www.portnine.com" target="_blank">Portnine</a></p>
      </footer>
    </div>
  </div>
</div>
<script src="__APP__/Resource/lib/bootstrap/js/bootstrap.js"></script> 
<script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
    </script>
</body>
</html>